// getters相当于computed计算属性
// 这里是单独将getter拎出来处理了
const getters = {
  sidebar: state => state.app.sidebar,
  // 本质没有变化
  // 等价于
  // 模组添加了命名空间,所以这里添加的时候需要增加模组名
  /* sidebar : (state) => {
        return state.app.sidebar
      }
  */
  device: state => state.app.device,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  username: state => state.user.useInfo.username,
  staffPhote: state => state.user.useInfo.staffPhoto,
  companyId: state => state.user.useInfo.companyId,
  userId: state => state.user.useInfo.userId
}
// 导出getter
export default getters
